createAccount

abstract fun createAccount(email: String, password: String, onResult: (Throwable?) -> Unit)

Create a new account using the provided email and password. This registers a new user in Firebase with the given credentials.

Parameters

email

The email address of the user.

password

The password to associate with the account.

onResult

The callback function to handle the result of account creation. It receives an optional Throwable indicating the error, if any.